<?php
use yii\helpers\Url;

$web = Url::base();

$site_name = \app\models\Mall::getCurrentInstitutionSiteName();
$this->title = $site_name . '-获得积分';
?>

<style type="text/css">
    .phone-integrall01 {
        width: 16rem;
        height: 9.1rem;
    }

    .phone-integrall01 img {
        width: 16rem;
        height: 9.1rem;
    }

    p {
        text-align: center;
        font-size: .7rem;
        color: #d22b3f;
        margin-top: 1.4rem;
    }

    p span {
        font-weight: bold;
    }

    .barcode {
        margin: 0 auto;
        /*width: 8.2rem;*/
        width: 16rem;
        margin-top: 1rem;
    }

    .barcode p {
        text-align: center;
        font-size: .5rem;
        color: #898989;
        margin-top: 0;
    }

    .barcode p.red {
        font-size: .6rem;
        color: #d22b3f;
        margin-top: 0;
    }

    .barcode img {
        width: 9rem;
        height: 9rem;
        margin: 0 auto;
        margin-left: 3.5rem;
        margin-top: .6rem
    }

    .barcode p.pay {
        text-align: center;
        font-size: .5rem;
        color: #898989;
        margin-top: 0.2rem;

    }

    .btn {
        margin: 0 auto;
        width: 16rem;
        height: 2rem;
        border-bottom: 1px dotted #ffa4a4;
        margin-bottom: 2.3rem;
        position: relative;
    }

    .btn a {
        display: block;
        text-align: center;
        font-size: .55rem;
        color: #898989;
        margin: 0 auto;
        width: 12.5rem;
        height: 1.75rem;
        line-height: 1.75rem;
        border: none;
        outline: none;
        border-radius: .2rem;
        background: #dcdddd;
        position: absolute;
        bottom: -.9rem;
        left: 1.8rem;
    }

    .btn a:active {
        background: #eeeeee;
    }
</style>

<div class="main">
    <div class="phone-integrall01">
        <img src="<?= $web ?>/images/mall-m/phone-integrall01.png"/>
    </div>
    <p>你已获得<span><?= $institution['name'] ?></span>赠送的<span><?= $card['integral'] ?></span><?= $institution['integral_unit'] ?></p>
    <div class="barcode">
        <p>长按下方二维码关注公众号</p>
        <p class="red">随时查看商城</p>
        <?php
        if (empty($qr)) {
            echo "<img src='{$web}/images/mall-m/dorabox-qr.jpg'>";
        } else {
            echo "<img src='$qr'>";
        }
        ?>
        <!--  <p class="pay">如不关注请搜索公众号<span>  dorabox_88</span></p>-->
    </div>
    <div class="btn">
        <a href="index">进入商城</a>
    </div>
</div>
